@import 'reset';


body{
    width: 982px;
    margin: 0 auto;
    font-size: 12px;
    color: #999999;
}

/*头部*/
header{
    height: 54px;
    border-bottom: 1px solid black;
    padding-top: 10px;
    span{
        &:nth-of-type(1){
            margin-left: 480px;
        }
        &:nth-of-type(2){
            margin-left: 10px;
            a{
                color: #b80000;
            }
        }
    }
    >a{
        margin-left: 25px;
        color: black;
        &:hover{
            color: red;
        }
    }
}

/*显示步骤*/
#step{
    display: flex;
    div{
        width: 190px;
        height: 28px;
        margin: 20px 5px;
        color: #666666;
        text-align: center;
        line-height: 28px;
        background-color: #eeeeee;
        &:nth-of-type(1){
            background-color: #b80000;
            color: white;
        }
    }
}

/*我的购物车*/
#meshopping{
    div{
        height: 50px; 
        img{ 
            vertical-align: middle;
            margin-right: 10px;
        }
        h2{
            display: inline;
            color: black;
        }
    }
    p{
        span{
            color: #a10000;
        }
    }
}


/*商品信息*/
#CyIn{
    padding-top: 20px;
    padding-bottom: 40px;
    
    tr{
        border: #dcdfe4;
        &:nth-of-type(1){
            height: 40px;
            background-color: #d8d8d8;
            td{
                width: 40px;
                color: black;
            }
        }
    }
    td{
        padding: 30px 0;
        // padding: 4px;
        text-align: center;
        color: black;
        &:nth-of-type(1){
            width: 93px;
            input{
                vertical-align: text-bottom;//复选框和文字居中对齐
            }
        }
        &:nth-of-type(2){
            width: 304px;
            div{
                float: left;
            }
            a{
                display: block;
                height: 40px;
                line-height: 40px;
                color: #333333;
                &:hover{
                    color: red;
                }
            }
        }
        &:nth-of-type(3){
            width: 78px;
        }
        &:nth-of-type(4){
            width: 78px;
        }
        &:nth-of-type(5){
            width: 106px;
            span{
                display: inline-block;
                &:nth-of-type(1),&:nth-of-type(3){
                    width: 17px;
                    height: 20px;
                    background-color: #d9d9d9;
                    border: 1px solid #b3b3b3;
                    margin: 4px;
                    cursor: pointer;
                }
                &:nth-of-type(2){
                    width: 32px;
                    height: 19px;
                    border: 1px solid #d8d8d8;
                }
            }
        }
        &:nth-of-type(6){
            width: 126px;
        }
        &:nth-of-type(7){
            width: 118px;
        }
        &:nth-of-type(8){
            width: 88px;
            span{
                cursor: pointer;
            }
        }
    }
}

/*结算*/
#Settlement{
    margin-top: 20px;
    height: 142px;
    width: 100%;
    border: 1px solid #ebe5bb;
    display: flex;
    justify-content: space-between;
    div{
        &:nth-of-type(1){
            width: 490px;
            height: 142px;
            // background-color: rgb(181, 212, 39);
            &:nth-of-type(1){
                li{
                    margin-bottom: 5px;
                    padding-left: 5px;
                    // background-color: rgb(21, 235, 103);
                    color: #333333;
                    &:nth-of-type(1){
                        height: 58px;
                        line-height: 58px;
                        input{
                            vertical-align: text-bottom;//复选框和文字居中对齐
                        }
                        >span{
                            margin: 0 10px;
                            &:nth-of-type(1){
                                cursor: pointer;
                            }
                        }
                    }
                    &:nth-of-type(2){
                        height: 30px;
                        line-height: 30px;
                    }
                    &:nth-of-type(3){
                        height: 42px;
                        line-height: 42px;
                        span{
                            margin: 0 20px;
                        }
                    }
                }

            }
        }
        &:nth-of-type(2){
            display: flex;
            justify-content: flex-end;
            align-items: center;
            button{
                &:nth-of-type(1){
                    width: 120px;
                    height: 34px;
                    background-color: #f2f2f2;
                    color: #666666;
                    border: 1px solid #dddddd;
                    border-radius: 7px;
                    cursor: pointer;
                }
                &:nth-of-type(2){
                    width: 160px;
                    height: 48px;
                    background-color: #bd0a0a;
                    border: 1px solid #820202;
                    border-radius: 7px;
                    font-size: 19px;
                    color: white;
                    margin-left: 20px;
                    cursor: pointer;
                }
            }
        }
    }
}

/*footer*/
footer{
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    div{
        margin-top: 10px;
    }
}